const Index = {
	// 二级页面缓存请求
	cache : (ref, option) => {
		let { param, query } = option || {}
		if(ref){
			const q = $.query()
			param = $fn.getResult(param)
			query = query ? $fn.getResult(query) : q
			ref.search(param, query)
		}
	},
	refresh : ref => ref?.refresh(),
	// 
	setPx: value => typeof value === 'number' ? value + 'px' : value
}

export default Index